package cn.edu.hpu.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import cn.edu.hpu.dao.DealDao;
import cn.edu.hpu.pojo.Deal;

public class DealService {
	
	private DealDao dealDao;
	public List<Deal> findAll() {
		
		return dealDao.findAll();
	}
	public Deal findById(String id) {
		
		return dealDao.get(id);
	}
	
	@Autowired
	public void setDealDao(DealDao dealDao) {
		this.dealDao = dealDao;
	}

	
	
	
}
